C89 fix in compegps.
authorrobertl <robertl>
Tue, 22 Jun 2010 03:06:28 +0000 (03:06 +0000)
committerrobertl <robertl>
Tue, 22 Jun 2010 03:06:28 +0000 (03:06 +0000)
compegps.c

index b91720838dca2b652af78a3cd8eef2e85b25c5cb..eb5fa0f599b9ff2d33b5b9c0d727fc9d8ab0c208 100644 (file)
@@ -151,8 +151,8 @@ parse_wpt(char *buff)
        char *c, *cx;
        waypoint *wpt = waypt_new();
        struct tm tm;
-       memset(&tm, 0, sizeof(tm));
        int has_time = 0;
+       memset(&tm, 0, sizeof(tm));
 
        c = strstr(buff, "A ");
        if (c == buff) col++;